package com.xcdh.auth.controller;


import com.xcdh.auth.service.AuthService;
import com.xcdh.domain.vo.R;
import com.xcdh.domain.entity.UserDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auth")
public class AuthController {
    @Autowired
    private AuthService authService ;


    @PostMapping("/login")
    public R login(@RequestBody UserDO userDO){
        return authService.login(userDO) ;
    }
}
